class Component():
    def init(self):#初始化
        pass

    def doSelectedKey(self):
        pass

class Keyboard(Component):
    def getSelectedKey(self):#了解指示值
        pass

class ActionKeyboard(Keyboard):
    def getAction(self):
        pass

class TicketKindKeyboard(Keyboard):
    def getTicketKind(self):#获取出票信息
        pass

class DestinationKeyboard(Keyboard):
    def getDestinationCode(self):
        pass

class Screen(Component):
    def showText(self):#显示文本
        pass

class CardDriver(Component):
    def getCredit(self):#获取
        pass

    def debitFare(self):#更新
        pass

    def ejectMCard(self):#退卡
        pass

class CashSlot(Component):
    def getCredit(self):
        pass

class Printer(Component):
    def printTicket(self):#打印车票
        pass

    def ejectTicket(self):#出车票
        pass

class TicketSoldSystem(ActionKeyboard,TicketKindKeyboard,DestinationKeyboard,Screen,CardDriver,CashSlot,Printer):
    def verifyCredit(self):#验证信用
        pass

    def calculateFare(self):
        pass

people=TicketSoldSystem()
people.init()
people.getSelectedKey()
people.getAction()
people.getTicketKind()
people.getDestinationCode()
people.showText()
people.getCredit()
people.debitFare()
people.ejectMCard()
people.printTicket()
people.ejectTicket()